package com.chucang.shucang.usr.vo;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @author flitsneak
 * @email flitsneak@gmail.com
 * @date 2022/10/6 17:00
 * @description
 */
@Data
public class UserResetPwdVO implements Serializable {
    /**
     * 验证码
     */
    @NotBlank(message = "验证码不能为空！")
    private String smsCode;
    /**
     * 手机号
     */
    @Pattern(regexp = "^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\\d{8}$", message = "非正经手机号")
    private String cellPhoneNum;
    /**
     * 新密码
     */
    @NotBlank(message = "新密码不能为空！")
    private String newPassword;
}
